package cn.congine.wizarpos.mall.model.open;

import java.util.Date;

/**
 * 
 * @author xudongdong
 *         2015年9月18日 上午11:00:49
 */
public class TicketInfoDetailOutput extends CommonOutput {

	private static final long serialVersionUID = 1L;
	
	private Result result = null;
	
	public Result getResult() {
		return result;
	}

	public void setResult(Result result) {
		this.result = result;
	}

	public class Result {
		/**
		 * ticketInfoId
		 */
		private String ticketInfoId;
		/**
		 * ticketDefId
		 */
		private String ticketDefId;
		/**
		 * 注销时间
		 */
		private Date cancelTime;
		/**
		 * 会员卡关联编号
		 */
		private String cardId;
		/**
		 * 会员券编号
		 */
		private String ticketNo;
		/**
		 * 过期时间
		 */
		private Date expriyTime;
		/**
		 * 启用时间
		 */
		private Date startTime;
		/**
		 * 创建时间
		 */
		private Date createTime;
		/**
		 * 使用时间
		 */
		private Date usedTime;
		/**
		 * 是否有效(1有效 0无效
		 */
		private boolean validFlag;
		/**
		 * 关联支付交易流水
		 */
		private String masterTranLogId;
		/**
		 * 备注
		 */
		private String remark;
		/**
		 * 红包是否分享（1：分享，0：未分享）
		 */
		private String hbShared;
		/**
		 * 卡券是否已经添加到卡包（1：已被添加，0：未添加）
		 */
		private String wxAdded;
		/**
		 * 券操作类型;(0 使用；1 作废；2 取消)
		 */
		private String operateType;

	// 以下为券定义信息 	
		
		/**
		 * 描述信息
		 */
		private String description;
		/**
		 * 慧商户号
		 */
		private String mid;
		/**
		 * 券码
		 */
		private int ticketCode;
		/**
		 * 券名称
		 */
		private String ticketName;
		/**
		 * 是否启用 0未启用 1启用 2审核未通过
		 */
		private int usedFlag;
		/**
		 * 微信卡券审核标记 0待审核 1 审核通过 2 审核未通过
		 */
		private String wxAuditFlag;
		/**
		 * 有效期，单位：天。-1表示永久有效
		 */
		private int validPeriod;
		/**
		 * 券定义删除标记位 0:未删除 1:已删除
		 */
		private String state;

		/**
		 * 微信券标识（1:微信卡券，0:非微信卡券, 2:红包）
		 */
		private String wxFlag;

		/**
		 * 微信卡券ID
		 */
		private String wxCodeId;

		/**
		 * 微信红包发放数
		 */
		private Integer hbBonusNum;

		/**
		 * 微信红包领取数
		 */
		private Integer hbUseNum;
		
		/**
		 * 微信卡券是否自定义code  0否 1是 
		 */
		private String wxCustomCode;
		
		/**
		 * 0 代金券 1折扣券 2礼品券 3团购券 4优惠券5.通用券
		 */
		private String ticketType;

	// 以下为商户信息 		
		/**
		 * 商户名称
		 */
		private String merchantName;
		
		/**
		 * 商户logo
		 */
		private String logoImage;
		
		/**
		 * 0:固定时长 1:时间段 
		 */
		private String timeFlag;
		
		public String getTicketInfoId() {
			return ticketInfoId;
		}

		public void setTicketInfoId(String ticketInfoId) {
			this.ticketInfoId = ticketInfoId;
		}

		public String getTicketDefId() {
			return ticketDefId;
		}

		public void setTicketDefId(String ticketDefId) {
			this.ticketDefId = ticketDefId;
		}

		public Date getCancelTime() {
			return cancelTime;
		}

		public void setCancelTime(Date cancelTime) {
			this.cancelTime = cancelTime;
		}

		public String getCardId() {
			return cardId;
		}

		public void setCardId(String cardId) {
			this.cardId = cardId;
		}

		public String getTicketNo() {
			return ticketNo;
		}

		public void setTicketNo(String ticketNo) {
			this.ticketNo = ticketNo;
		}

		public Date getExpriyTime() {
			return expriyTime;
		}

		public void setExpriyTime(Date expriyTime) {
			this.expriyTime = expriyTime;
		}

		public Date getStartTime() {
			return startTime;
		}

		public void setStartTime(Date startTime) {
			this.startTime = startTime;
		}

		public Date getCreateTime() {
			return createTime;
		}

		public void setCreateTime(Date createTime) {
			this.createTime = createTime;
		}

		public Date getUsedTime() {
			return usedTime;
		}

		public void setUsedTime(Date usedTime) {
			this.usedTime = usedTime;
		}

		public boolean isValidFlag() {
			return validFlag;
		}

		public void setValidFlag(boolean validFlag) {
			this.validFlag = validFlag;
		}

		public String getMasterTranLogId() {
			return masterTranLogId;
		}

		public void setMasterTranLogId(String masterTranLogId) {
			this.masterTranLogId = masterTranLogId;
		}

		public String getRemark() {
			return remark;
		}

		public void setRemark(String remark) {
			this.remark = remark;
		}

		public String getHbShared() {
			return hbShared;
		}

		public void setHbShared(String hbShared) {
			this.hbShared = hbShared;
		}

		public String getWxAdded() {
			return wxAdded;
		}

		public void setWxAdded(String wxAdded) {
			this.wxAdded = wxAdded;
		}

		public String getOperateType() {
			return operateType;
		}

		public void setOperateType(String operateType) {
			this.operateType = operateType;
		}

		public String getDescription() {
			return description;
		}

		public void setDescription(String description) {
			this.description = description;
		}

		public String getMid() {
			return mid;
		}

		public void setMid(String mid) {
			this.mid = mid;
		}

		public int getTicketCode() {
			return ticketCode;
		}

		public void setTicketCode(int ticketCode) {
			this.ticketCode = ticketCode;
		}

		public String getTicketName() {
			return ticketName;
		}

		public void setTicketName(String ticketName) {
			this.ticketName = ticketName;
		}

		public int getUsedFlag() {
			return usedFlag;
		}

		public void setUsedFlag(int usedFlag) {
			this.usedFlag = usedFlag;
		}

		public String getWxAuditFlag() {
			return wxAuditFlag;
		}

		public void setWxAuditFlag(String wxAuditFlag) {
			this.wxAuditFlag = wxAuditFlag;
		}

		public int getValidPeriod() {
			return validPeriod;
		}

		public void setValidPeriod(int validPeriod) {
			this.validPeriod = validPeriod;
		}

		public String getState() {
			return state;
		}

		public void setState(String state) {
			this.state = state;
		}

		public String getWxFlag() {
			return wxFlag;
		}

		public void setWxFlag(String wxFlag) {
			this.wxFlag = wxFlag;
		}

		public String getWxCodeId() {
			return wxCodeId;
		}

		public void setWxCodeId(String wxCodeId) {
			this.wxCodeId = wxCodeId;
		}

		public Integer getHbBonusNum() {
			return hbBonusNum;
		}

		public void setHbBonusNum(Integer hbBonusNum) {
			this.hbBonusNum = hbBonusNum;
		}

		public Integer getHbUseNum() {
			return hbUseNum;
		}

		public void setHbUseNum(Integer hbUseNum) {
			this.hbUseNum = hbUseNum;
		}

		public String getWxCustomCode() {
			return wxCustomCode;
		}

		public void setWxCustomCode(String wxCustomCode) {
			this.wxCustomCode = wxCustomCode;
		}

		public String getTicketType() {
			return ticketType;
		}

		public void setTicketType(String ticketType) {
			this.ticketType = ticketType;
		}

		public String getMerchantName() {
			return merchantName;
		}

		public void setMerchantName(String merchantName) {
			this.merchantName = merchantName;
		}

		public String getLogoImage() {
			return logoImage;
		}

		public void setLogoImage(String logoImage) {
			this.logoImage = logoImage;
		}

		public String getTimeFlag() {
			return timeFlag;
		}

		public void setTimeFlag(String timeFlag) {
			this.timeFlag = timeFlag;
		}
	}
}


